package com.woniuxy.business.mapper;

import com.woniuxy.entity.Bank;
import com.woniuxy.entity.PreLoan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 贷前管理的mapper接口
 */
@Mapper
public interface PreLoanMapper {
    //添加
    void insertPreLoan(PreLoan preLoan);
    //删除
    void deletePreLoan(Integer id);
    //根据企业外键查找
    List<PreLoan> selectPreLoanByBusinessName(Integer business_id);
    //根据状态查找 + 分页
    List<PreLoan> selectPreLoanByStatus(@Param("process_status") String process_status,
                                        @Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
}
